﻿using System.Collections.Generic;
using System.Linq;
using iHouse.Infrastructure;
using iHouse.Model.Data;

namespace iHouse.Model.Repository.Interface
{
    public interface ICategoryRepository
    {
        JqGridList<Category> GetCategoriesForList(int typeID, PagingCriteria criteria);
        IEnumerable<Category> GetCategoriesByType(int typeID);
        void CreateCategory(Category c);
        void UpdateCategory();
        void DeleteCategory(int categoryID);
        Category GetCategoryByID(int categoryID);
        IEnumerable<IGrouping<int, Category>> GetAllCategories();
    }
}
